package com.itheima.edu.info.maneger.controller;

import com.itheima.edu.info.maneger.domain.Teacher;
import com.itheima.edu.info.maneger.service.TeacherService;

import java.util.Scanner;

public class TeacherController extends BaseTeacherController{
    public Teacher inputTeacherInfo(String updateId) {
        Teacher newteacher = new Teacher();
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //将用户输入的数据进行封装
        newteacher.setId(updateId);
        newteacher.setName(name);
        newteacher.setAge(age);
        newteacher.setBirthday(birthday);
        return newteacher;
    }
}
